package com.hjlh.aimedical.common;

import org.springframework.util.StringUtils;

public class SystemtEnums {

    public enum  ai_type{
        Deepseek_Chat("Deepseek Chat","deepseek-chat"),
        Deepseek_R1("Deepseek R1","deepseek-reasoner"),
        Kimi_8("Kimi 8","moonshot-v1-8k"),
        Kimi_32("Kimi 32","moonshot-v1-32k"),
        Kimi_128("Kimi 128","moonshot-v1-128k");

        String code;
        String content;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        ai_type(String code, String content) {
            this.code = code;
            this.content = content;
        }

        public static ai_type getByCode(String code){
            if(StringUtils.isEmpty(code)){
                return null;
            }
            for (ai_type a : ai_type.values()){
                if(a.getCode().equalsIgnoreCase(code)){
                    return a;
                }
            }
            return null;
        }
    }
}
